import * as getters from './getters'
import * as actions from './actions'
import mutations from './mutations'

// const 声明 一个常量才不会导致每次刷新会改变 store 的值
const state = {
  tableHeader: {
    agent: {

    }
  },
  table: {
    callIn: {

    },
    MultiChannel: {

    },
    callSkill: {

    },
    MultiChannelSkill: {

    },
    callOut: {

    },
    agentMonitor: {

    },
    phone_heartBeat: {}
  },
  webchatSummary: {
    dealingSession: 0,
    allSession: 0,
    closeSession: 0,
    accessSession: 0,
    waitClaim: 0,
    imDealCount: 0,
    undealSession: 0,
    queueGiveupCount: 0,
    messageSession: 0
  },
  webchatAgentStatus: {free: 0, busy: 0, close: 0, offline: 0, customize: 0},
  chart: {
    todayCall: {
      todayCallin: {

      },
      todayCallout: {

      }
    },
    serveNums: {

    },
    multiChannelSkill: {

    },
    hour24Callin: {

    },
    hour24Callout: {

    }
  },
  agentStateChange: {
    random: 0,
    userId: [],
    userIdNew: [],
    userIdtemp: [],
    randomBar: 0
  },
  agentStateChangeIm: {random: '', userId: ''},
  moduleOpen: {call: false, webchat: false, newCall: false},
  queueWarning: null,
  updateCurrentQueueServiceNo: {}
}
export default {
  state,
  getters,
  actions,
  mutations
}
